package com.zxl.grocery.modular.crawler.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxl.grocery.modular.crawler.entity.CrawlerSources;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 来源 Mapper 接口
 * </p>
 *
 * @author zxl
 * @since 2017-08-31
 */
public interface CrawlerSourcesMapper extends BaseMapper<CrawlerSources> {

    /**
     * 获取所有的爬虫资源信息
     *
     * @return
     */
    List<Map<String, Object>> getAllCrawlerSourcesList();

    List<Map<String, Object>> getCrawlerSourceList(@Param("source") String source, @Param("sourceUrl") String sourceUrl);
}